import Mock from "mockjs"

// 用户列表
import {userList,userInfo,userInfo1,userInfo2} from './mockData'

// 获取用户列表
Mock.mock(/\/userList/,"get",{
  code:200,
  data:{
    total:210,
    userList
  }
})

// 获取用户信息
Mock.mock(/\/userInfo\?id=([1-9]\d*)?[147]$/,"get",{
  code:200,
  data:{
    userInfo
  }
})

Mock.mock(/\/userInfo\?id=([1-9]\d*)?[0258]$/,"get",{
  code:200,
  data:{
    userInfo:userInfo1
  }
})

Mock.mock(/\/userInfo\?id=([1-9]\d*)?[369]$/,"get",{
  code:200,
  data:{
    userInfo:userInfo2
  }
})